
var List = require('immutable').List;

const plainArray = [1, 2, 3, 4];
const listFromPlainArray = List(plainArray);

console.log(listFromPlainArray);
const newArr = listFromPlainArray.set(2, {a: 10});
console.log(newArr);
console.log(listFromPlainArray.size);
console.log(listFromPlainArray.toJS());

console.log(List.of({a: 1}, 2, [3], 4).toJS());
